+1998-12-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkwidget.h (struct _GtkWidgetClass): Added a "grab_focus"
+ signal for widgets. When the signal is emitted, the widget will
+ grab the focus. This is needed to let the user press an
+ accelerator key in a dialog box and have the corresponding widget
+ be focused.
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): Create the "grab_focus"
+ signal. The default handler is simply gtk_widget_grab_focus().
+
Sun Dec 13 22:15:48 GMT 1998 Tony Gale <gale@gtk.org>
* docs/gtk_tut.sgml: Update the following sections to the
+1998-12-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkwidget.h (struct _GtkWidgetClass): Added a "grab_focus"
+ signal for widgets. When the signal is emitted, the widget will
+ grab the focus. This is needed to let the user press an
+ accelerator key in a dialog box and have the corresponding widget
+ be focused.
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): Create the "grab_focus"
+ signal. The default handler is simply gtk_widget_grab_focus().
+
Sun Dec 13 22:15:48 GMT 1998 Tony Gale <gale@gtk.org>
* docs/gtk_tut.sgml: Update the following sections to the
+1998-12-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkwidget.h (struct _GtkWidgetClass): Added a "grab_focus"
+ signal for widgets. When the signal is emitted, the widget will
+ grab the focus. This is needed to let the user press an
+ accelerator key in a dialog box and have the corresponding widget
+ be focused.
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): Create the "grab_focus"
+ signal. The default handler is simply gtk_widget_grab_focus().
+
Sun Dec 13 22:15:48 GMT 1998 Tony Gale <gale@gtk.org>
* docs/gtk_tut.sgml: Update the following sections to the
+1998-12-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkwidget.h (struct _GtkWidgetClass): Added a "grab_focus"
+ signal for widgets. When the signal is emitted, the widget will
+ grab the focus. This is needed to let the user press an
+ accelerator key in a dialog box and have the corresponding widget
+ be focused.
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): Create the "grab_focus"
+ signal. The default handler is simply gtk_widget_grab_focus().
+
Sun Dec 13 22:15:48 GMT 1998 Tony Gale <gale@gtk.org>
* docs/gtk_tut.sgml: Update the following sections to the
+1998-12-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkwidget.h (struct _GtkWidgetClass): Added a "grab_focus"
+ signal for widgets. When the signal is emitted, the widget will
+ grab the focus. This is needed to let the user press an
+ accelerator key in a dialog box and have the corresponding widget
+ be focused.
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): Create the "grab_focus"
+ signal. The default handler is simply gtk_widget_grab_focus().
+
Sun Dec 13 22:15:48 GMT 1998 Tony Gale <gale@gtk.org>
* docs/gtk_tut.sgml: Update the following sections to the
+1998-12-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkwidget.h (struct _GtkWidgetClass): Added a "grab_focus"
+ signal for widgets. When the signal is emitted, the widget will
+ grab the focus. This is needed to let the user press an
+ accelerator key in a dialog box and have the corresponding widget
+ be focused.
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): Create the "grab_focus"
+ signal. The default handler is simply gtk_widget_grab_focus().
+
Sun Dec 13 22:15:48 GMT 1998 Tony Gale <gale@gtk.org>
* docs/gtk_tut.sgml: Update the following sections to the
+1998-12-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkwidget.h (struct _GtkWidgetClass): Added a "grab_focus"
+ signal for widgets. When the signal is emitted, the widget will
+ grab the focus. This is needed to let the user press an
+ accelerator key in a dialog box and have the corresponding widget
+ be focused.
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): Create the "grab_focus"
+ signal. The default handler is simply gtk_widget_grab_focus().
+
Sun Dec 13 22:15:48 GMT 1998 Tony Gale <gale@gtk.org>
* docs/gtk_tut.sgml: Update the following sections to the
STYLE_SET,
ADD_ACCELERATOR,
REMOVE_ACCELERATOR,
+ GRAB_FOCUS,
EVENT,
BUTTON_PRESS_EVENT,
BUTTON_RELEASE_EVENT,
widget_signals[REMOVE_ACCELERATOR] =
gtk_accel_group_create_remove (object_class->type, GTK_RUN_LAST,
GTK_SIGNAL_OFFSET (GtkWidgetClass, remove_accelerator));
+ widget_signals[GRAB_FOCUS] =
+ gtk_signal_new ("grab_focus",
+ GTK_RUN_FIRST,
+ object_class->type,
+ GTK_SIGNAL_OFFSET (GtkWidgetClass, grab_focus),
+ gtk_marshal_NONE__NONE,
+ GTK_TYPE_NONE, 0);
widget_signals[EVENT] =
gtk_signal_new ("event",
GTK_RUN_LAST,
klass->style_set = gtk_widget_style_set;
klass->add_accelerator = (void*) gtk_accel_group_handle_add;
klass->remove_accelerator = (void*) gtk_accel_group_handle_remove;
+ klass->grab_focus = gtk_widget_grab_focus;
klass->event = NULL;
klass->button_press_event = NULL;
klass->button_release_event = NULL;
GtkAccelGroup *accel_group,
guint accel_key,
GdkModifierType accel_mods);
+
+ /* explicit focus */
+ void (* grab_focus) (GtkWidget *widget);
/* events */
gint (* event) (GtkWidget *widget,